package com.coolyu.lab.data;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

public class VoteFactory {
	//For efficiency, we use the singleton and create it only once.
	private static final PersistenceManagerFactory pmfInstance = 
				JDOHelper.getPersistenceManagerFactory("transactions-optional");
	
	public static PersistenceManagerFactory getInstance(){
		return pmfInstance;
	}

}